package ${package}.service;

import com.ishansong.common.model.Response;
import com.ishansong.common.util.log.ParamsLog;
import com.ishansong.log.Loggers;
import ${package}.model.Order;
import ${package}.repository.OrderMapper;
import org.slf4j.Logger;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 */
@Service(value = "orderService")
@ParamsLog(logName = "${appName}")
public class OrderServiceImpl implements OrderService {

    @Autowired
    OrderMapper orderMapper;

    private final static Logger logger = Loggers.get("${appName}");

    @Override
    public Response<Order> queryOrderById(Long id) {
        return Response.ok(orderMapper.queryById(id));
    }

}
